home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 9 / The PC-SIG Library on CD ROM - Ninth Edition.iso / 401_500 / DISK0417 / DISK0417.ZIP / PROLOG.ARC / VISION.ARC / READ.ME < prev   
Text File  |  1986-08-24  |  1KB  |  67 lines

  1.                              "FRAMES" DOCUMENTATION
  2.  
  3.  
  4.  
  5.         The prolog listing FRAMES.PRO will compile and run under 
  6.         PDPROLOG.  The major limitation of PDPROLOG in this context is 
  7.         that it does not support floating-point arithmetic.  We have 
  8.         truncated the value of pi in the cylinder cross-sectional area 
  9.         routine to 3.  An alternative approach would be to use, e.g., 314 
  10.         and mentally divide each area and volume by 100 to obtain an 
  11.         answer to two decimal points.  In any case, when you enter values 
  12.         from the keyboard for, e.g., the Radius, you must use integer 
  13.         values if you are running PDPROLOG.
  14.  
  15.         To invoke the program, boot PDPROLOG and type:
  16.         consult('frames').
  17.         After the program has compiled, type:
  18.         frame_put(cylinder1,radius,2).
  19.         frame_put(cylinder1,height,10).
  20.         etc.
  21.  
  22.         In order to see the affect of entering a value for the radius or 
  23.         height, you may either type:
  24.         listing(cylinder1).
  25.         (Don't forget the period at the end of commands).
  26.         Or, you may use the frame_get predicate:
  27.         frame_get(cylinder1,X,Y).
  28.         X and Y must be capital letters.  Initial caps indicate variable names  
  29.         in Prolog.
  30.  
  31.         LISTING2.PRO AND LISTING3.PRO ARE NOT STAND-ALONE PROGRAMS.
  32.         THEY CANNOT BE EXECUTED.
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.